﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="demoImageList_EditItemTemplate.aspx.cs" Inherits="CSS_ImageList_demoImageList_EditItemTemplate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="JUtil.Web" Namespace="JUtil.Web.WebControls" TagPrefix="jw" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/demoImageList.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <div>
      <div class="item-list clearfix">
        <asp:Repeater ID="Repeater1" runat="server">
          <ItemTemplate>
            <div class="item">
              <p class="invisible">
                <asp:TextBox runat="server" ID="tfACTIVITY_ID" Text='<%# Eval("ACTIVITY_ID") %>' />
                <asp:TextBox runat="server" ID="tfACTIVITY_ITEM_ID" Text='<%# Eval("ACTIVITY_ITEM_ID") %>' />
                <jw:NumEdit ID="tfREMAIN" Text='<%# Eval("REMAIN") %>' MaximumValue="999999" MinimumValue="0" runat="server"/>
                <asp:TextBox runat="server" ID="tfIMAGE_FILE_NAME" Text='<%# Eval("IMAGE_FILE_NAME") %>' />
              </p>
                    
              <p class="thumb">
                <asp:Image 
                  ID="tfIMAGE" 
                  ImageUrl='<%# AspxConverter.FileNameToImageUrl(Eval("IMAGE_FILE_NAME")) %>' 
                  runat="server" />
              </p>  
              
              <%--<p class="file-upload">
                <asp:UpdatePanel ID="EditMode_UPD_FILE_UPLOAD" runat="server">
                  <ContentTemplate>
                      <asp:FileUpload ID="EditMode_FuImage" runat="server" />
                  </ContentTemplate>
                  <Triggers>
                      <asp:PostBackTrigger ControlID="BtnUpdate" />
                  </Triggers>
                </asp:UpdatePanel>
              </p>--%>
              
              <p class="description">
              <strong>項目說明:</strong>    
              <jw:XTextBox 
                runat="server" 
                ID="tfDESCRIPTION" 
                Required="true"
                RequiredErrorMessage="請輸入項目說明"
                ValidationGroup="DetailItemValidation"
                Text='<%# Eval("DESCRIPTION") %>' />
              </p>
              
              <p class="total">
              <strong>總數量 : </strong>
              <jw:NumEdit 
                    ID="tfTOTAL" 
                    Text='<%# Eval("TOTAL") %>' 
                    MaximumValue="999999" 
                    MinimumValue="0" 
                    Required="true"
                    RequiredErrorMessage="請輸入總數量"
                    ValidationGroup="DetailItemValidation"
                    runat="server"/>
              </p>
              <p>
                  <strong>
                  <asp:LinkButton 
                    runat="server" 
                    ID="BtnUpdate" 
                    Text="存檔" 
                    ValidationGroup="DetailItemValidation"
                    CommandName="Update" />
                  | 
                  <asp:LinkButton runat="server" ID="BtnCancel" Text="取消" CommandName="Cancel" CausesValidation="false" />                         
                  </strong>
              </p>
            </div>
          </ItemTemplate>
        </asp:Repeater>
        
      </div><%--item-list--%>
      
    </div>
    </form>
</body>
</html>
